from flask import Flask, request, jsonify

app = Flask(__name__)

@app.route("/hello", methods=['GET', 'POST'])
def hello():
    if request.method == 'POST':
        data = request.json
        print(f'receive data: {data}')
        print(f'receive data: {data["name"]}')
        return jsonify(data)
    return "Hello World!"

@app.route("/user/<username>")
def show_user_profile(username):
    print(f'User: {username}')
    return f"User: {username}"


def start(port: int):
    """
    Description
    """
    app.run(debug=True, host='0.0.0.0', port= port)